package com.project.server;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@Slf4j
@SpringBootApplication
@MapperScan("com.project.server.mapper")
public class ProjectServerApplication {
    public static void main(String[] args) {
        log.info("开始启动应用...");
        try {
            ConfigurableApplicationContext context = SpringApplication.run(ProjectServerApplication.class, args);
            log.info("应用启动成功！");
        } catch (Exception e) {
            log.error("应用启动失败！", e);
            throw e;
        }
    }

}
